package cn.demo.springcloud.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.demo.springcloud.client.ProductClientFeign;
import cn.demo.springcloud.pojo.Product;

@Service
public class ProductService {

	@Autowired ProductClientFeign productClientFeign;

	public List<Product> listProducts(){
		return productClientFeign.listProdcuts();
	}

}
